package com.atguigu.webadmin.service.impl;


import com.atguigu.model.pojo.AttrKey;
import com.atguigu.webadmin.mapper.AttrKeyMapper;
import com.atguigu.webadmin.service.AttrKeyService;
import com.atguigu.webadmin.vo.attr.AttrKeyVo;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author 梅超凡
 * @Date 2024/11/12~20:24
 * @Description 针对表【attr_key(房间基本属性表)】的数据库操作Service实现
*/
@Service
@Slf4j
public class AttrKeyServiceImpl extends ServiceImpl<AttrKeyMapper, AttrKey>
    implements AttrKeyService {

    @Autowired
    private AttrKeyMapper attrKeyMapper;
    @Override
    public List<AttrKeyVo> listAttrInfo() {
        List<AttrKeyVo> attrKeyVoList = attrKeyMapper.listAttrInfo();
        log.info("查询结果为：{}",attrKeyVoList);
        return attrKeyVoList;
    }
}




